package com.study.demo.gsbean.demo1;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author: elvin
 * @time: 2019-04-16 14:39
 * @desc:
 **/
public class Man implements Person {

    private String name;

    private Date day;

    public void walk() {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        System.out.println(name + " is walking at " + dateFormat.format(day));
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDay() {
        return day;
    }

    public void setDay(Date day) {
        this.day = day;
    }
}
